Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 2 - Control Manager Reference / Control Manager Functions
Displaying Controls /


DrawOneControl

CHANGED WITH THE APPEARANCE MANAGER

Draws a single control and any embedded controls that are currently visible in the specified window.

pascal void DrawOneControl (ControlHandle theControl);
theControl
On input, a handle to the control you want to draw.
DISCUSSION
Although you should generally use the function UpdateControls to update controls, you can use the DrawOneControl function to update a single control. If an embedding hierarchy exists and the control passed in has embedded controls, DrawOneControl draws the control and embedded controls. If the root control for a window is passed in, the result is the same as if DrawControls was called.

SEE ALSO
"Embedding Controls".

WHEN THE APPEARANCE MANAGER IS NOT AVAILABLE
DrawOneControl does not draw any embedded controls, because embedding hierarchies are not supported.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998